<?php
$forum_id = $pun_user["id"];

$sql = "select * from wm_characters where character_forum_id = '$forum_id' and character_active='1'";
$result = $db->query($sql);

$character = $db->fetch_assoc($result);

if($character["character_approved"] != 1) {
 header("Location: $war_http/denied.php");
 exit;
}

?>
